-- GENERATED SPELL FOR [Illidari Jailor] --


function spell0_21520(pUnit, Event) --@Fel Shackles,n/a--
pUnit:FullCastSpellOnTarget(38051,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21520', 7500, 1)
end

function Sorts_21520(pUnit, Event)
local choix_sorts_21520 = math.random(0, 0)
if choix_sorts_21520 == 0 then
pUnit:RegisterEvent('spell0_21520', 1, 1)
end
end

function mob21520_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21520', math.random(1500, 3000), 1)
end

function mob21520_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21520_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21520_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21520, 1, 'mob21520_Action')
RegisterUnitEvent(21520, 2, 'mob21520_Leave')
RegisterUnitEvent(21520, 3, 'mob21520_Kill')
RegisterUnitEvent(21520, 4, 'mob21520_Die')
